fix: noexcept for Observer#4039
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4039 +/- ##
==========================================
- Coverage 82.07% 82.05% -0.02%
==========================================
Files 385 385
Lines 15891 15895 +4
==========================================
Hits 13041 13041
- Misses 2850 2854 +4
🚀 New features to boost your workflow:
|
|
Non-blocking: this improves the map-insertion failure path, but I think attributed observations can still terminate before this catch runs. The |
dbarker
left a comment
There was a problem hiding this comment.
Thanks for the PR.
Still an open question about how to provide user visibility of these errors during development. Okay to silently return for now.
|
Wait - why are we doing POKEMON coding here? If there is an actual memory stomp, it'll obscure it even more. This is dangerous! |
Fair point. This was approved and merged because it avoids |
Valid concern. As dbaker mentioned, I think the broader issue is how to make these failures observable without putting the application at risk. If narrowing the catch clauses is needed here, I can send a follow-up fix. |
Fixes #2053
Changes
bad allocation, bad variant access can happen. First i try to logging when exception happens, But following the comment, ignore it.
CHANGELOG.mdupdated for non-trivial changes